package com.woniu.book.service;

import com.woniu.book.domain.Booking;
import com.woniu.book.dto.BookingDto;
import com.woniu.book.vo.BookingListVo;
import com.woniu.book.vo.BookingVo;

import java.awt.print.Book;
import java.math.BigDecimal;
import java.util.List;

public interface BookService {
    void makeBook(BookingDto booking);

    BookingVo queryBookById(Long bookingId);

    List<Booking> queryBookByIds(List<Long> ids);

    BigDecimal totalPay(Integer payType, BigDecimal rent, Integer rentDuration);

    BigDecimal CalculateDiscount(BookingDto booking, BigDecimal prePay);

    Integer modifyBookingStatus(Long bookingId);

    Booking queryBookByIdForFinance(Long bookId);

    List<BookingListVo> getBooksById(Long valueOf);

    void remove(Long id);

}
